var _Step = require('scenes/game/toturial/step.js');
var _inherit = require('core/inherit.js');

function Step() {
    _Step.call(this);
    this.mMoveCount = 0;
}
_inherit(Step, _Step);
Step.prototype.onMergeFinish = function () {
    this.mMoveCount++;
    if (this.mMoveCount == 1) {
        var rtf = this.createHeader('Swipe anywhere;\nmove everybody.');
        this.mToturial.showHeaderTip(rtf);
    } else if (this.mMoveCount >= 2) {
        this.mToturial.nextStep();
        this.mToturial = null;
        this.mLocal = null;
    }
};
Step.prototype.onStart = function (toturial, local) {
    this.mToturial = toturial;
    this.mLocal = local;
};

module.exports = Step;